Update Common Questions section on tree views
authorArjan Molenaar <gaphor@gmail.com>
Thu, 10 Nov 2022 21:20:07 +0000 (22:20 +0100)
committerArjan Molenaar <gaphor@gmail.com>
Thu, 10 Nov 2022 21:41:26 +0000 (22:41 +0100)
Point users to GtkListView instead of the
deprecated GtkTreeView.

docs/reference/gtk/question_index.md

index 13ab0ac3e27eaba9d628163e5d1470adf1af4b46..aa0cbafff2f38f35bd53fc6947542eaaaeed1cc2 100644 (file)
@@ -311,9 +311,11 @@ the question you have, this list is a good place to start.
     and the required formatting flexibility.
 
     If you want to display a large amount of data in a uniform way, your best
-    option is a [class@Gtk.TreeView] widget. See the [tree widget overview](#TreeWidget).
-    A list is just a tree with no branches, so the treeview widget is used for
-    lists as well.
+    option is a [class@Gtk.ListView] widget. The list view can have different
+    types of models: [class@Gtk.TreeListModel] can serve as a model for a tree
+    structure, while a simple [iface@Gio.ListModel] can be used for simple lists.
+    The section [List Widget Overview](section-list-widget.html) helps you get started.
+    It replaces [class@Gtk.TreeView], which has been deprecated since GTK 4.10.
 
     If you want to display a small amount of items, but need flexible formatting
     and widgetry inside the list, then you probably want to use a [class@Gtk.ListBox],